Panel Responses
A handler of a panel in a dialog box (including applications, printing extensions, printer drivers, and Macintosh system software) can return any value of typeOSErr
as the result of handling the panel. In addition, a panel handler can return an event of typegxPanelResult
, as shown here. This data type is used with theGXHandlePanelEvent
message, which is described on page 4-85.
enum { gxPanelNoResult = 0, gxPanelCancelConfirmation = 1 }; typedef long gxPanelResult;Constant descriptions
gxPanelNoResult
- The result field does not currently have any meaning.
gxPanelCancelConfirmation
- This result is only valid if the panel event (as described in the previous section) was of type
gxPanelUserWillConfirmEvt
. After the user confirms the panel, if the panel handler discovers
that the user entered an inappropriate value, the panel handler alerts the user to the problem and generates this response, which tells QuickDraw GX to not confirm the dialog box. This allows the user the opportunity to fix the problem.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help